<template>
  <img :src="singer.picUrl" alt="">
  <p class="singer-name">{{singer.name}}</p>
</template>

<script lang="ts">
export default {
  name: 'Singer',
  props: {
    singer: {
      type: Object,
      default: () => ({})
    }
  }
}
</script>

<style lang="scss" scoped>
img {
  width: 100%;
  border-radius: 5px;
}

.singer-name {
  font-size: 14px;
  color: #333333;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  padding-top: 8px;
  line-height: 1.2;
}
</style>
